<input type="file" id="abc" name="def" multiple/>
<button onclick="ok()">upload</button>

<script>
function ok()
{
	var files = document.getElementById("abc").files;

	for(var i = 0; i < files.length; i++)
	{
		let j = i, reader = new FileReader(), file = files[i];
		reader.onload = () => fetch(`http://localhost:19810/${j}/${file.name}`, {method:"post",mode: "no-cors",body:reader.result});
		reader.readAsArrayBuffer(file);
	}
}
</script>
